<?php

namespace App\Store\Validate\Sysset\Commission;

use App\Common\Validate\BaseValidate;

/**
 * 折扣验证器
 */
class Recovery extends BaseValidate
{
    //验证规则
    protected $rule = [];
    //自定义验证信息
    protected $message = [];

    public function __construct($doaction = 'add')
    {
        if ($doaction == 'add') {
            $this->rule = [
                'store_id'=>'sometimes',
                'store_ids' => 'required',
                'goods_category_names' => 'required',
            ];
            $this->message = [
                'store_ids.required'=>'门店id必填',
                'goods_category_names.required' => '商品类别未选择',
            ];
        }
    }
}
